package sample.page;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

@SuppressWarnings("serial")
public class TopPage extends WebPage{

	public TopPage(final PageParameters pram){
		
		Link<Void> UseJDO=new Link<Void>("UseJDO"){
			@Override
			public void onClick() {
				pram.put("Dao",0);
				setResponsePage(MainPage.class,pram);
			}
		};
		Link<Void> UseLowLevelAPI=new Link<Void>("UseLowLevelAPI"){
			@Override
			public void onClick() {
				pram.put("Dao",1);
				setResponsePage(MainPage.class,pram);
			}
		};
		add(UseJDO);
		add(UseLowLevelAPI);
	}
}
